package com.joysuch.wwyt.edu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.joysuch.wwyt.edu.entity.EduCourse;
import com.joysuch.wwyt.edu.entity.EduCourseware;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface EduCoursewareMapper extends BaseMapper<EduCourseware> {

    int selectCowrseFinish(@Param("courseawareId") Long courseawareId,
                           @Param("currentUserId") Long currentUserId,
                           @Param("learnTime") Integer learnTime,
                           @Param("trainingId") Long trainingId);

    List<Long> selectCourseIds(@Param("id") Long id);

    Integer selectTrainingCourse(@Param("courseIds") List<Long> courseIds);

}
